<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="hu" xml:lang="hu">
<head>
<?php print $html->charset('utf-8') ?>
<title><?php print $title_for_layout ?></title>
<meta name="generator" content="<?php if(isset($settings)) print $settings['version']; ?>" /> 
<link rel="shortcut icon" href="<?php print $html->url('/favicon.ico'); ?>" type="image/x-icon" />
<?php print $html->css('what2Do', 'stylesheet', array('media'=>'screen')); ?>
<link rel="stylesheet" type="text/css" href="<?php print $html->url('/css/what2DoBeallitas.css.php'); ?>" />
<?php print $html->css('print_havi', 'stylesheet', array('media'=>'print')); ?>


</head>
<body>
<div id="teljeslap">

		<?php
			print $content_for_layout;
		?>
		<div id="menu">
		<?php
			$m1 = $m2 = $m3 = $m4 = $m5 = $m6 = $m7 = array();
			if(strpos($_SERVER['REQUEST_URI'], 'categories'))
				$m2 = array('class'=>'akt');
			elseif(strpos($_SERVER['REQUEST_URI'], 'priorities'))
				$m3 = array('class'=>'akt');
			elseif(strpos($_SERVER['REQUEST_URI'], 'pages/help'))
				$m5 = array('class'=>'akt');
			elseif(strpos($_SERVER['REQUEST_URI'], 'maybe'))
				$m6 = array('class'=>'akt');
			elseif(strpos($_SERVER['REQUEST_URI'], 'waiting'))
				$m7 = array('class'=>'akt');			
			elseif(!strpos($_SERVER['REQUEST_URI'], 'login') && !strpos($_SERVER['REQUEST_URI'], 'users'))
				$m1 = array('class'=>'akt');
			if(!strpos($_SERVER['REQUEST_URI'], 'login')){
				print $html->link(__('Tasks', true), '/', $m1);
				print $html->link(__('Categories', true), '/categories/', $m2);
				print $html->link(__('Priorities', true), '/priorities/', $m3);
				print $html->link(__('Help', true), '/pages/help/', $m5);
				print $html->link(__('Maybe', true), '/tasks/maybe/', $m6);
				print $html->link(__('Waiting', true), '/tasks/waiting/', $m7);
				print $html->link(__('Tags', true), '/tags/', $m8);
				}
		?>
		</div>

</div>
</body>
</html>